package org.linlinjava.litemall.wx.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @Description: TODO
 * @author: Destin
 * @date: 2021-11-07
 */
@Data
@ApiModel("提交订单信息")
public class SubmitOrderDTO {

    @ApiModelProperty("用户id")
    @NotBlank(message = "用户id不能为空")
    private Integer userId;

    @ApiModelProperty("商品id")
    private Integer goodsId;

    @ApiModelProperty("商品数量")
    private Integer num;

    @ApiModelProperty("购物车id集合")
    private List<Integer> cartIds;

    @ApiModelProperty("地址id")
    @NotBlank(message = "地址id不能为空")
    private Integer addressId;

    @ApiModelProperty("订单发票信息")
    private String invoiceMsg;

    @ApiModelProperty("备注")
    private String message;

    @ApiModelProperty("发票信息")
    private OrderInvoiceDTO orderInvoiceDTO;
}
